package com.ffcs.crmd.tsp.common.exception;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAliasType;

/**
 * 
 * 功能说明:执行任务异常处理类
 * <p>请使用 {@link com.ffcs.crmd.tsp.api.dto.task.TspJobExecutionException TspJobExecutionException}</p>
 *
 * @author ZHONGFUHUA
 * 
 * @since 1.0.0-SNAPSHOT
 *
 * @see com.ffcs.crmd.tsp.api.dto.task.TspJobExecutionException
 */

@XStreamAliasType("TspJobExecutionException")
@Deprecated
public class TspJobExecutionException  extends Exception implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * 立即重新执行
     */
    private boolean refireJob = true;

    public TspJobExecutionException() {
        super();
    }


    public TspJobExecutionException(String msg) {
        super(msg);
    }
    
    public TspJobExecutionException(Throwable cause) {
        super(cause);
    }

    public boolean isRefireJob() {
        return refireJob;
    }

    public void setRefireJob(boolean refireJob) {
        this.refireJob = refireJob;
    }

}
